Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initiate_wait_for_task - support :flash => true to flash while waiting #4732

Merged
merged 1 commit into from
Oct 5, 2018
Merged

initiate_wait_for_task - support :flash => true to flash while waiting #4732

merged 1 commit into from
Oct 5, 2018

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Oct 4, 2018

while waiting for a task, we sometimes want to show a flash indicating the UI is waiting fro the task to finish

this allows us to use something like..

add_flash(_("Task queued"))
initiate_wait_for_task(..., :flash => true)

and expect a flash message to be shown under the spinner

Comes from a discussion in #4628, cc @yrudman

Note this will eat any queued flash messages (which is probably ok, since any success/error messages should come from the :action).

while waiting for a task, we sometimes want to show a flash indicating the UI is waiting fro the task to finish

this allows us to use something like..

```
add_flash(_("Task queued"))
initiate_wait_work_task(..., :flash => true)
```

and expect a flash message to be shown under the spinner
@yrudman
Copy link
Contributor

yrudman commented Oct 4, 2018

@himdel thank you

@miq-bot
Copy link
Member

miq-bot commented Oct 5, 2018

Checked commit https://github.com/himdel/manageiq-ui-classic/commit/78f8bce31bd02633fb9084abc25e97a475141b86 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 👍

@mzazrivec mzazrivec self-assigned this Oct 5, 2018
@mzazrivec mzazrivec added the tasks label Oct 5, 2018
@mzazrivec mzazrivec added this to the Sprint 96 Ending Oct 8, 2018 milestone Oct 5, 2018
@mzazrivec mzazrivec merged commit 6105297 into ManageIQ:master Oct 5, 2018
@himdel himdel deleted the flash-waiting branch October 5, 2018 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants